package com.babel.util.tools;

import java.text.DecimalFormat;


/**
 * 格式化
 * @author tangzhi
 *
 * 2014-11-16
 */
public class DoubleFormat {

	public static final String ONLY_DECIMAL_FORMAT_PATTERN = "###.00";
	
	
	public static String format(String pattern,double amount){
		DecimalFormat fmt = new DecimalFormat(pattern);   
        return fmt.format(amount);   
	}
}
